package com.learn.hibernatevalidator.chapter03.parameter;

import jakarta.validation.constraints.Future;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;

import java.util.Date;

/**
 * 租车站
 *
 * @author: liyf
 * @create: 2024-12-23 22:35
 **/
public class RentalStation {

    public RentalStation(@NotNull String name) {
        System.out.println("RentalStation.RentalStation");
    }

    public void rentCar(@NotNull Customer customer,
                        @NotNull @Future Date rentalDate,
                        @Min(1) int durationInDays) {
        System.out.println("RentalStation.rentCar");

    }
}
